package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品信息对象 credit_goods
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class CreditGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String goodsCategory;

    /** 商品图片（JSON格式） */
    @Excel(name = "商品图片")
    private String goodsImages;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    /** 推荐信用分 */
    @Excel(name = "推荐信用分")
    private Integer recommendScore;

    /** 是否推荐（0否 1是） */
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private String isRecommended;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer stockQuantity;

    /** 是否可购买（0否 1是） */
    @Excel(name = "是否可购买", readConverterExp = "0=否,1=是")
    private String isAvailable;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setGoodsCategory(String goodsCategory) 
    {
        this.goodsCategory = goodsCategory;
    }

    public String getGoodsCategory() 
    {
        return goodsCategory;
    }
    public void setGoodsImages(String goodsImages) 
    {
        this.goodsImages = goodsImages;
    }

    public String getGoodsImages() 
    {
        return goodsImages;
    }
    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }
    public void setRecommendScore(Integer recommendScore) 
    {
        this.recommendScore = recommendScore;
    }

    public Integer getRecommendScore() 
    {
        return recommendScore;
    }
    public void setIsRecommended(String isRecommended) 
    {
        this.isRecommended = isRecommended;
    }

    public String getIsRecommended() 
    {
        return isRecommended;
    }
    public void setStockQuantity(Integer stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Integer getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setIsAvailable(String isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public String getIsAvailable() 
    {
        return isAvailable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsCategory", getGoodsCategory())
            .append("goodsImages", getGoodsImages())
            .append("goodsDesc", getGoodsDesc())
            .append("recommendScore", getRecommendScore())
            .append("isRecommended", getIsRecommended())
            .append("stockQuantity", getStockQuantity())
            .append("isAvailable", getIsAvailable())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 